package hutech.ksv.view;

import hutech.ksv.entity.ChiTietPNXNTEntity;
import hutech.ksv.entity.PhieuNhanXetNTEntity;
import hutech.ksv.service.PhieuNhanXetNTService;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope("session")
public class PhieuNhanXetNTManageBean implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Autowired
	PhieuNhanXetNTService pnxNhaTroService;

	private int maPNXNT;
	private int maNT;
	private String noiDungNhanXetNT;
	private int danhGiaNT;
	private String tenTKSV;

	public int getDanhGiaNT() {
		return danhGiaNT;
	}

	public void setDanhGiaNT(int danhGiaNT) {
		this.danhGiaNT = danhGiaNT;
	}

	public String getTenTKSV() {
		return tenTKSV;
	}

	public void setTenTKSV(String tenTKSV) {
		this.tenTKSV = tenTKSV;
	}

	public int getMaPNXNT() {
		return maPNXNT;
	}

	public void setMaPNXNT(int maPNXNT) {
		this.maPNXNT = maPNXNT;
	}

	public int getMaNT() {
		return maNT;
	}

	public void setMaNT(int maNT) {
		this.maNT = maNT;
	}

	public String getNoiDungNhanXetNT() {
		return noiDungNhanXetNT;
	}

	public void setNoiDungNhanXetNT(String noiDungNhanXetNT) {
		this.noiDungNhanXetNT = noiDungNhanXetNT;
	}

	// Load phieu nhan xet
	public List<PhieuNhanXetNTEntity> loadNhanXetNT() {
		return pnxNhaTroService.loadNhanXetNT();
	}

	// Load chi tiet phieu nhan xet
	public List<ChiTietPNXNTEntity> loadCTNhanXetNT() {
		return pnxNhaTroService.loadCTNhanXetNT();
	}
}
